﻿package example.ex02;

public class BigNumber {

    static int max(int x, int y){
//        int max;
//        
//        if(x > y){
//            max = x;
//        }else{
//            max = y;
//        }
        
        //3항연산자
        return (x>y)?x:y;
    }
    
    static double max(double x, double y, double z){
        double max;
        
        max = (x > y)? x : y;

        return (max > z)? max : z;
    }
    
    public static void main(String[] args) {
        
        
        System.out.println("Test max(3,4) => " + max(3,4));
        System.out.println("Test max(3.0,4.0,5.0) => " + max(9.0,3.0,7.0));
    }
}
